package chapter3.No3_3_类ThreadLocal的使用.demo4;

import java.util.Date;

/**
 * *：ThreadLocal隔离性再次验证
 * Created by Administrator on 2016/11/20.
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 10; i++) {
            System.out.println("main线程的值是：" + Tools.tl.get());
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        Thread.sleep(3000);
        ThreadA a = new ThreadA();
        a.start();
    }
}
